package cn.com.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import cn.com.beans.FractionInfo;
import cn.com.mapper.FractionInfoMapper;
import cn.com.service.FractionInfoService;

import java.lang.reflect.Type;

@Service
public class FractionInfoServiceImpl implements FractionInfoService {

    @Resource
    private FractionInfoMapper fractionInfoMapper;

    @Override
    public int deleteByPrimaryKey(Integer frId) {
        return fractionInfoMapper.deleteByPrimaryKey(frId);
    }

    @Override
    public int insert(FractionInfo record) {
        return fractionInfoMapper.insert(record);
    }

    @Override
    public int insertSelective(FractionInfo record) {
        return fractionInfoMapper.insertSelective(record);
    }

    @Override
    public FractionInfo selectByPrimaryKey(Integer frId) {
        return fractionInfoMapper.selectByPrimaryKey(frId);
    }

    @Override
    public int updateByPrimaryKeySelective(FractionInfo record) {
        return fractionInfoMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(FractionInfo record) {
        return fractionInfoMapper.updateByPrimaryKey(record);
    }

    @Override
    public Integer findScoreByYearAndId(Integer year, Integer id ,Integer Type) {
        return fractionInfoMapper.findScoreByYearAndId(year, id,Type);
    }

    /**
     * 根据条件查询
     *
     * @param fractionInfo 条件实体
     * @return 查询到的实体
     */
    @Override
    public FractionInfo findAll(FractionInfo fractionInfo) {
        return fractionInfoMapper.findAll(fractionInfo);
    }

}

